<select id='roles_<%=container_id%>' name='roles' onchange="new Ajax.Request('/permission/add_permission?container_id=<%=container_id%>&role_id=' + this.options[this.selectedIndex].value, {asynchronous:true, evalScripts:true, onLoading:function(request){Element.show('indicator_<%=container_id%>')}});Element.hide('roles_<%=container_id%>');return false;">

<option disabled selected><%="Select Role".t%></option>
<%@cur_user.company.reload%>
<%@cur_user.company.roles.each do |role|%>
<option value='r_<%=role.id%>'><%=role.identifier%></option>
<%end%>
<option disabled><%=@cur_user.company.name%></option>
<%@cur_user.company.users.each do |user|%>
  <option value='u_<%=user.id%>'><%=user.name%></option>
<%end%>

</select>
